package ta.utils;

import java.io.File;

public class CodeConfig
{
	// 包名
	public static String PackageName = "wic";
	// model包
	public static String BeanPackageName = PackageName + ".model";
	// dao包
	public static String DaoPackageName = PackageName + ".dao";
	// servlet包
	public static String ServletPackageName = PackageName + ".servlet";
	// 生成的java路径
	public static String modelPath = BeanPackageName.replace(".", "\\");
	public static String daoPath = DaoPackageName.replace(".", "\\");
	public static String servletPath = ServletPackageName.replace(".", "\\");
	// 获得项目src目录的绝对路径
	public static String getRoot(String path)
	{
		return new File(System.getProperty("user.dir") + "\\src\\ta", path).getAbsolutePath();
	}
}
